package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoReference entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_reference")
public class InfoReference extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer referenceId;
	private String referenceName;
	private String referenceContent;
	private Date referenceCreateTime;
	private Integer referenceCreaterId;

	// Constructors

	/** default constructor */
	public InfoReference() {
	}

	/** full constructor */
	public InfoReference(String referenceName, String referenceContent,
			Date referenceCreateTime, Integer referenceCreaterId) {
		this.referenceName = referenceName;
		this.referenceContent = referenceContent;
		this.referenceCreateTime = referenceCreateTime;
		this.referenceCreaterId = referenceCreaterId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "reference_id", unique = true, nullable = false)
	public Integer getReferenceId() {
		return this.referenceId;
	}

	public void setReferenceId(Integer referenceId) {
		this.referenceId = referenceId;
	}

	@Column(name = "reference_name", nullable = false, length = 256)
	public String getReferenceName() {
		return this.referenceName;
	}

	public void setReferenceName(String referenceName) {
		this.referenceName = referenceName;
	}

	@Column(name = "reference_content", nullable = false, length = 65535)
	public String getReferenceContent() {
		return this.referenceContent;
	}

	public void setReferenceContent(String referenceContent) {
		this.referenceContent = referenceContent;
	}

	@Column(name = "reference_create_time", nullable = false, length = 19)
	public Date getReferenceCreateTime() {
		return this.referenceCreateTime;
	}

	public void setReferenceCreateTime(Date referenceCreateTime) {
		this.referenceCreateTime = referenceCreateTime;
	}

	@Column(name = "reference_creater_id", nullable = false)
	public Integer getReferenceCreaterId() {
		return this.referenceCreaterId;
	}

	public void setReferenceCreaterId(Integer referenceCreaterId) {
		this.referenceCreaterId = referenceCreaterId;
	}

}